﻿using System;
using System.Collections.Generic;
using System.Text;
using Vbyte.SharpOrm.Adapter;

namespace Vbyte.SharpOrm.MySql
{
    public class MySqlAdapter : ISqlDbAdapter
    {
        #region ISqlDbAdapter 成员

        /// <summary>
        /// 获取针对NET CLR基本数据类型的Sql数据类型转换
        /// </summary>
        /// <param name="clrType">NET CLR基本基本类型</param>
        /// <param name="maxLength">可为空的最大长度限制</param>
        /// <returns></returns>
        public string GetNativeType(Type clrType, int? maxLength)
        {
            throw new NotImplementedException();
        }

        /// <summary>
        /// 获取指定表内最新产生标志的SQL语句获取文本
        /// </summary>
        /// <param name="currentTabName">当前表名，如果为null或空则返回全局标志。</param>
        /// <returns>标志的SQL语句获取文本</returns>
        public string GetIdentitySql(string currentTabName)
        {
            throw new NotImplementedException();
        }

        /// <summary>
        /// 针对不支持TOP语句的适配
        /// </summary>
        /// <param name="ilimited">限制返回数据条数</param>
        /// <returns>限制返回记录条数的SQL语句</returns>
        public string GetTopSql(int ilimited)
        {
            throw new NotImplementedException();
        }

        #endregion
    }
}
